Micron Document
<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Boa (JavaScript engine)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Boa_(JavaScript_engine)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Boa_JavaScript_engine rootpage-Boa_JavaScript_engine skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Boa (JavaScript engine)</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r1251242444">
/* start https://en.wikipedia.org/ */


.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}


/* end https://en.wikipedia.org/ */
</style>
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */


.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}


/* end https://en.wikipedia.org/ */
</style><table class="infobox vevent"><tbody><tr><th colspan="2" class="infobox-above summary">Boa</th></tr><tr><td colspan="2" class="infobox-image logo"><span typeof="mw:File"></span></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Programmer" title="Programmer">Original author(s)</a></th><td class="infobox-data"><a rel="nofollow" class="external text" href="https://jason-williams.co.uk">Jason Williams</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Programmer" title="Programmer">Developer(s)</a></th><td class="infobox-data">Boa Developers</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Initial release</th><td class="infobox-data">10&nbsp;June 2019<span style="display:none">&nbsp;(<span class="bday dtstart published updated">2019-06-10</span>)</span></td></tr><tr style="display: none;"><td colspan="2" class="infobox-full-data"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;">v0.20<sup id="cite_ref-latest-release_1-0" class="reference"><a href="#cite_note-latest-release-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> / 5&nbsp;December 2024<span style="display:none">&nbsp;(<span class="bday dtstart published updated">2024-12-05</span>)</span>
/ <span style="display:none">&nbsp;()</span></div></td></tr><tr style="display:none"><td colspan="2">
</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Repository_(version_control)" title="Repository (version control)">Repository</a></th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://github.com/boa-dev/boa">github<wbr>.com<wbr>/boa-dev<wbr>/boa</a></span></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Written in</th><td class="infobox-data"><a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a><sup id="cite_ref-boa-about_2-0" class="reference"><a href="#cite_note-boa-about-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Computing_platform" title="Computing platform">Platform</a></th><td class="infobox-data"><a href="X86-64" title="X86-64">x86-64</a>, <a href="ARM_architecture" class="mw-redirect" title="ARM architecture">32-bit ARM</a>, <a href="AArch64" title="AArch64">AArch64</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_categories#Categorization_approaches" title="Software categories">Type</a></th><td class="infobox-data"><a href="JavaScript_engine" class="mw-redirect" title="JavaScript engine">JavaScript</a> and <a href="WebAssembly" title="WebAssembly">WebAssembly</a> engine</td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_license" title="Software license">License</a></th><td class="infobox-data"><a href="MIT_License" title="MIT License">MIT</a></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://boajs.dev">boajs<wbr>.dev</a></span></td></tr></tbody></table>
<p><b>Boa</b> is an <a href="Open-source" class="mw-redirect" title="Open-source">open-source</a> <a href="JavaScript_engine" class="mw-redirect" title="JavaScript engine">JavaScript</a> engine written in Rust.<sup id="cite_ref-boa-about_2-1" class="reference"><a href="#cite_note-boa-about-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> Boa was introduced at JSConf EU 2019 by Jason Williams.<sup id="cite_ref-boa-talk_3-0" class="reference"><a href="#cite_note-boa-talk-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-jsonconf-eu_4-0" class="reference"><a href="#cite_note-jsonconf-eu-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p><p>Williams created Boa in 2017 after working on <a href="Servo_(software)" title="Servo (software)">Servo</a> and being inspired by the "written from scratch" CSS engine.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-jsonconf-eu_4-1" class="reference"><a href="#cite_note-jsonconf-eu-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> He was eager to work on a JavaScript engine using Rust to learn more about how JavaScript implementations work, since then the project has had over 100 contributors.<sup id="cite_ref-boa-talk_3-1" class="reference"><a href="#cite_note-boa-talk-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> Overtime the engine gained more prominent features such as <a href="Bytecode" title="Bytecode">bytecode</a> compilation,<sup id="cite_ref-7" class="reference"><a href="#cite_note-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> better conformance to the specification and ergonomic API design.<sup id="cite_ref-latest-release_1-1" class="reference"><a href="#cite_note-latest-release-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Design">Design</h2></div>
<p>Boa is an open-source implementation of a JavaScript execution engine. The project is developed as a Rust library for embedding the JavaScript engine in Rust applications. Additionally, the authors of Boa provide a command-line interface (CLI) for users to interact with Boa as standalone JavaScript interpreter accessible from a command line.<sup id="cite_ref-boaspect_8-0" class="reference"><a href="#cite_note-boaspect-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p><p>Boa follows the common interpreter design which approximately consists of a <a href="Lexer" class="mw-redirect" title="Lexer">lexer</a>, <a href="Parser" class="mw-redirect" title="Parser">parser</a>, <a href="Compiler" title="Compiler">compiler</a> and <a href="Bytecode_interpreter" class="mw-redirect" title="Bytecode interpreter">bytecode interpreter</a><sup id="cite_ref-boaspect_8-1" class="reference"><a href="#cite_note-boaspect-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Standards">Standards</h2></div>
<p>Boa implements the ECMA-262 specification (<a href="ECMAScript" title="ECMAScript">ECMAScript</a>). As of 6 September 2024 Boa has 88% conformance to Test262<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1266661725">
/* start https://en.wikipedia.org/ */


.mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:1px solid var(--border-color-base,#a2a9b1);padding:0.1em;background:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}


/* end https://en.wikipedia.org/ */
</style>
<ul><li><a href="JerryScript" title="JerryScript">JerryScript</a>, an ultra-lightweight JavaScript engine</li>
<li><a href="SpiderMonkey" title="SpiderMonkey">SpiderMonkey</a>, a JavaScript engine used in Firefox</li>
<li><a href="List_of_ECMAScript_engines" class="mw-redirect" title="List of ECMAScript engines">List Of ECMAScript engines</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */


.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}


/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-columns references-column-width" style="column-width: 30em;">
<ol class="references">
<li id="cite_note-latest-release-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-latest-release_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-latest-release_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */


.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}


/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://boajs.dev/blog/2024/12/05/boa-release-020">"Boa release v0.19"</a>. <i>boajs.dev</i>. 5 December 2024.</cite></span>
</li>
<li id="cite_note-boa-about-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-boa-about_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-boa-about_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://boajs.dev/about">"About Boa | Boa JS"</a>. <i>boajs.dev</i>. Boa Developers<span class="reference-accessdate">. Retrieved <span class="nowrap">15 October</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-boa-talk-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-boa-talk_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-boa-talk_3-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFWilliams2019" class="citation web cs1">Williams, Jason (20 June 2019). <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=_uD2pijcSi4">"Let's build a JavaScript Engine in Rust by Jason Williams - JSConf EU 2019"</a>. <i>YouTube</i>. JS Conf EU<span class="reference-accessdate">. Retrieved <span class="nowrap">15 October</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-jsonconf-eu-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-jsonconf-eu_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-jsonconf-eu_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFJason_Williams" class="citation web cs1">Jason Williams. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240225094308/https://2019.jsconf.eu/jason-williams/lets-build-a-javascript-engine.html">"Let's build a JavaScript Engine"</a>. <i>2019.jsconf.eu</i>. JS Conf EU. Archived from <a rel="nofollow" class="external text" href="https://2019.jsconf.eu/jason-williams/lets-build-a-javascript-engine.html">the original</a> on 25 February 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">25 February</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://hacks.mozilla.org/2017/04/hacking-contributing-to-servo-on-windows/">"Hacking &amp; Contributing to Servo On Windows – Mozilla Hacks - the Web developer blog"</a>. <i>Mozilla Hacks – the Web developer blog</i>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/boa-dev/boa/graphs/contributors">"Contributors to boa-dev/boa"</a>. <i>GitHub</i>.</cite></span>
</li>
<li id="cite_note-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-7">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://boajs.dev/blog/2022/03/15/boa-release-14">"Boa release v0.14"</a>. <i>boajs.dev</i>. 15 March 2022.</cite></span>
</li>
<li id="cite_note-boaspect-8"><span class="mw-cite-backlink">^ <a href="#cite_ref-boaspect_8-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-boaspect_8-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFMunsters" class="citation web cs1">Munsters, Aäron. <a rel="nofollow" class="external text" href="http://soft.vub.ac.be/Publications/2022/vub-soft-ms-22-01.pdf">"BoaSpect"</a> <span class="cs1-format">(PDF)</span>. Vrije Universiteit Brussel<span class="reference-accessdate">. Retrieved <span class="nowrap">15 October</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20240906171312/http://test262.fyi/">"test262.fyi"</a>. <i>test262.fyi</i>. 6 September 2024. Archived from <a rel="nofollow" class="external text" href="https://test262.fyi">the original</a> on 6 September 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">6 September</span> 2024</span>.</cite></span>
</li>
</ol></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2024-12-05" href="https://en.wikipedia.org/wiki/?title=Boa_(JavaScript_engine)&amp;oldid=1261364155">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>

</body></html>